import { mongo } from "../mogoConfig";

const db = mongo.db("my_test")
db.collection("inventory")
    .findOne({})
    .then(result => {
        console.log(JSON.stringify(result))
    })
    .catch(error => {
        console.log(error)
    })
    .finally(() => {
        mongo.close()
    })

console.log("执行结束")